package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.BannerDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.dao.ServiceDao;
import com.gdk.dao.TreeDao;
import com.gdk.service.ArticleService;
import com.gdk.service.BannerService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.service.ServiceService;
import com.gdk.service.TreeService;
import com.gdk.utils.Md5Utils;


/**
 * 树业务处理
 * */
@Service("ServiceService")
public class ServiceServiceImpl implements ServiceService {
	@Autowired
    private ServiceDao serviceDao;

	 @Override
	public List<Map<String, Object>> selectAllService() {
		return serviceDao.selectAllService();
	}
	
	 @Override
	public int addService(Map<String, Object> map) {
		return serviceDao.addService(map);
	}
	@Override
	public Map<String, Object> selectServiceDetails(Map<String, Object> map) {
		return serviceDao.selectServiceDetails(map);
	}
	@Override
	public int updateServiceDetails(Map<String, Object> map) {
		return serviceDao.updateServiceDetails(map);
	}
	
}
